package com.gzdh.dishrecognition.model;

import java.text.SimpleDateFormat;
import java.util.Date;

public class FkModel {

    private String cardno;

    private int kh;

    private String bqh;

    private String ksh;

    private String id;

    private String name;

    private String cardsn;

    private String cardsnInt;


    private String kl;

    public String kye;

    public String btye;

    private String aliUserId;

    private Integer aliUserAgreement;

    private String aliAgreementNo;

    private String validdate;

    private Integer isGuaShi;

    public String getCardno() {
        return cardno;
    }

    public void setCardno(String cardno) {
        this.cardno = cardno;
    }

    public int getKh() {
        return kh;
    }

    public void setKh(int kh) {
        this.kh = kh;
    }

    public String getBqh() {
        return bqh;
    }

    public void setBqh(String bqh) {
        this.bqh = bqh;
    }

    public String getKsh() {
        return ksh;
    }

    public void setKsh(String ksh) {
        this.ksh = ksh;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCardsn() {
        return cardsn;
    }

    public void setCardsn(String cardsn) {
        this.cardsn = cardsn;
    }

    public String getCardsnInt() {
        return cardsnInt;
    }

    public void setCardsnInt(String cardsnInt) {
        this.cardsnInt = cardsnInt;
    }

    public String getKl() {
        return kl;
    }

    public void setKl(String kl) {
        this.kl = kl;
    }

    public String getKye() {
        return kye;
    }

    public void setKye(String kye) {
        this.kye = kye;
    }

    public String getBtye() {
        return btye;
    }

    public void setBtye(String btye) {
        this.btye = btye;
    }

    public String getAliUserId() {
        return aliUserId;
    }

    public void setAliUserId(String aliUserId) {
        this.aliUserId = aliUserId;
    }

    public Integer getAliUserAgreement() {
        return aliUserAgreement;
    }

    public void setAliUserAgreement(Integer aliUserAgreement) {
        this.aliUserAgreement = aliUserAgreement;
    }

    public String getAliAgreementNo() {
        return aliAgreementNo;
    }

    public void setAliAgreementNo(String aliAgreementNo) {
        this.aliAgreementNo = aliAgreementNo;
    }

    public String getValiddate() {
        return validdate;
    }

    public void setValiddate(String validdate) {
        this.validdate = validdate;
    }

    public Integer getIsGuaShi() {
        return isGuaShi;
    }

    public void setIsGuaShi(Integer isGuaShi) {
        this.isGuaShi = isGuaShi;
    }

    public Date getValiddate(String smf) {
        try {
            SimpleDateFormat simpleDateFormat = new SimpleDateFormat(smf);
            return simpleDateFormat.parse(this.validdate);
        } catch (Exception e) {
            return null;
        }

    }
}
